package com.xcc.strategypattern.demo01;

/**
 * @Description: ToyDuck
 * @Author: xiechuang
 * @Date: 2022/5/19
 */
public class RubberDuck extends Duck {

    /**
     * 呱呱叫覆盖为吱吱叫
     */
    public void quack() {
        System.out.println("叫声：吱吱叫");
    }

    @Override
    public void display() {
        System.out.println("外观是橡皮鸭");
    }

}
